
# 场景1
# T(n) = 3n
def eat1(n):
	for i in range(n):
		print("等待1 min")
		print("等待1 min")
		print("吃 1cm 面包")


# 场景2
# T(n) = 5logn
def eat2(n):
	while n > 1:
		print("等待1 min")
		print("等待1 min")
		print("等待1 min")
		print("等待1 min")
		print("吃一半面包")
		n = n / 2



# 场景3
# T(n) = 2
def eat3(n):
	print("等待1 min")
	print("吃1个鸡腿")

# 场景4
# T(n) = 0.5n^2 + 0.5n
def eat4(n):
	for i in range(n):
		for j in range(i):
			print("等待1 min")
		print("吃1cm 面包")


if __name__ == "__main__":
	eat4(5)